{template header}


<div class="container">

<ol class="breadcrumb">
  <li><a href="{SITE_URL}">首页</a></li>
  <li><a href="{tsUrl('history')}">动态</a></li>

</ol>

<div class="row">

<div class="col-md-8">


    <div class="panel panel-default">
        <div class="panel-body">

            <div class="history_show">
   <ul>
<li class="mbtl">
<a href="{tsUrl('user','topic',array('id'=>$strHistory[user][userid]))}"><img class="img-circle" title="{$strHistory[user][username]}" alt="{$strHistory[user][username]}" src="{$strHistory[user][face]}" width="48" /></a>
</li>
<li class="mbtr">
<div class="author"><a href="{tsUrl('user','topic',array('id'=>$strHistory[user][userid]))}">{$strHistory[user][username]}</a> {$strHistory[addtime]}</div>
<div class="content">
{if $strHistory[photo]}<a target="_blank" href="{SITE_URL}uploadfile/history/{$strHistory[photo]}"><img src="{php echo tsXimg($strHistory['photo'],'history',240,'',$strHistory['path'])}" /></a>{/if}
{$strHistory[content]}
</div>
<p style="text-align:right;">
{if $GLOBALS['TS_USER']['isadmin'] == 1}
<a href="{tsUrl('history','deletehistory',array('historyid'=>$strHistory['historyid']))}">删除</a>
{/if}

</p>
</li>
   </ul>
            </div>


        </div>
</div>



    <div class="panel panel-default">
        <div class="panel-heading">回复({$strHistory['count_comment']})</div>
        <div class="panel-body">

<div  class="comment">
<ul>
{loop $arrComment $key $item}
<li class="clearfix">
<div class="user-face">
<a href="{tsUrl('user','duty',array('id'=>$item[user][userid]))}"><img class="img-circle" title="{$item[user][username]}" alt="{$item[user][username]}" src="{$item[user][face]}" width="48" /></a>
</div>
<div class="reply-doc">
<h4>
{$item[addtime]} 
<a href="{tsUrl('user','topic',array('id'=>$item[userid]))}">{$item[user][username]}</a>
</h4>
<p>{$item[content]}</p>
{if $GLOBALS['TS_USER'][user][userid] == $item[userid] || $GLOBALS['TS_USER']['isadmin']==1}
<div class="group_banned">
<span><a class="j a_confirm_link" href="{tsUrl('history','deletecomment',array('commentid'=>$item['commentid']))}" rel="nofollow">删除</a>
</span>
</div>
{/if}
</div>
</li>
{/loop}
</ul>
</div>




            <div class="page">{$pageUrl}</div>




<form method="post" class="form text-form" action="{SITE_URL}index.php?app=history&ac=addcomment" enctype="multipart/form-data">
<textarea class="form-control" rows="2" name="content"></textarea>
<div style="padding:5px 0;">
<input type="hidden" name="historyid" value="{$strHistory['historyid']}" />
<input type="hidden" name="token" value="{$_SESSION['token']}" />
<button  class="btn btn-success"  type="submit">回复</button>
</div>
</form>







</div>
</div>




    <div class="panel panel-default">
        <div class="panel-heading">相关动态</div>
        <div class="panel-body">


            <div class="commlist">
                <ul>
                    {loop $arrHistory $key $item}
                    <li><a href="{tsUrl('history','show',array('id'=>$item['historyid']))}">{php echo cututf8(t(tsDecode($item['content'])),0,50,false)}</a></li>
                    {/loop}
                </ul>
            </div>

</div>
</div>


</div>


<div class="col-md-4">

    <div class="panel panel-default">
        <div class="panel-body">

    <div class="facebox">
<div class="face">
<a href="{tsUrl('user','topic',array('id'=>$strHistory[user][userid]))}" rel="face" uid="$strHistory[user][userid]"><img class="img-circle" title="{$strHistory[user][username]}" alt="{$strHistory[user][username]}" src="{$strHistory[user][face]}" width="48"></a>
</div>
<!--
<div class="info">
<h3><a href="{tsUrl('user','topic',array('id'=>$strHistory[user][userid]))}">{$strHistory[user][username]}</a></h3>
<div><a class="btn btn-success btn-sm" href="javascript:void('0')" onclick="follow('{$strHistory['user']['userid']}','{$_SESSION['token']}');">关注</a></div>
</div>
-->
    </div>



</div>
</div>

<!--广告位-->
{php doAction('gobad','300')}


</div>

</div>

</div>


{template footer}